package com.designpattern.createpattern.demo07.builder.builder.impl;

import com.designpattern.createpattern.demo07.builder.builder.Builder;
import com.designpattern.createpattern.demo07.builder.product.Bike;

/**
 * 具体的构建者，用来构建摩拜单车
 */
public class MobiBike extends Builder {
    @Override
    public void buildFrame() {
        bike.setFrame("碳纤维");
    }

    @Override
    public void buildSeat() {
        bike.setSeat("真皮座椅");
    }

    @Override
    public Bike createBike() {
        return bike;
    }
}
